import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set_node_cls from "@dfeidao/atom-web/ui/set-node-cls";
import render from '@dfeidao/atom-web/render/render';
import set from '@dfeidao/atom-web/local/set';
import p001 from './p001';
import p002 from './p002';

export default async function a001(fd: IFeidaoAiBrowserComponent, cs: string) {
	// 显示修改弹出框
	console.log("shifou=>", cs);
	set(fd, 'cs', cs);
	const d = fd.data.node.querySelector<HTMLDListElement>('[data-id="update"]');
	set_node_cls(d, 'display-n', false);

	render(fd, cs, p002, 'p002', 'inner');
	render(fd, cs, p001, 'p001', 'inner');
}
